import csv
from Data_compare import StringCompareUtil

sting = StringCompareUtil()
with open('../Data/别名 (1).csv','r',encoding='utf8') as file:
    reader = csv.reader(file)
    next(reader)
    with open('../Data/别名.csv', 'w', encoding='utf8',newline='') as file2:
        writer = csv.writer(file2)
        writer.writerow(["odp_account_alias2id","from_accountidname","account_alias_name","odp_accountidname","name_result"])
        for row in reader:
            name_result = sting.compare_full(row[2], row[3])
            row.append(name_result)
            writer.writerow(row)


